package com.drakulo.games.ais.core;

import org.newdawn.slick.Color;

import com.drakulo.games.ais.ui.I18n;
import com.drakulo.games.ais.ui.Style;

/**
 * <h1>Represents resource types</h1>
 * 
 * @author Drakulo
 * 
 */
public enum Resource {
	ENERGY(Style.RES_ENERGY_CLR, "resource.energy", "lighting"), //
	CRISTAL(Style.RES_CRISTAL_CLR, "resource.cristal", "cristal"), //
	GAS(Style.RES_GAS_CLR, "resource.gas", "fire"), //
	FOOD(Style.RES_FOOD_CLR, "resource.food", "food");

	/** The resource associated color */
	private Color color;
	/** The resource traduction key */
	private String i18nKey;
	/** The associated image base */
	private String imageRef;

	private Resource(Color color, String i18nKey, String imageRef) {
		this.color = color;
		this.i18nKey = i18nKey;
		this.imageRef = imageRef;
	}

	public Color getColor() {
		return this.color;
	}

	public String getI18n() {
		return I18n.get(this.i18nKey);
	}

	public String getGfxBase(){
		return this.imageRef;
	}
}
